package com.hyzx.qbasic.admin.domain.repository;

import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.ProcessConfigPO;
import com.hyzx.qbasic.admin.model.po.ProcessConfigPagedInfoPO;

import java.util.List;

/**
 * Created by 黄江华 on 2018/11/28
 */

public interface IProcessConfigRepository {

    PageInfo<ProcessConfigPagedInfoPO> getPagedProcessConfigList(int pageNum, int pageSize, Integer processCategoryId, String processDefinitionName);

    boolean addProcessConfig(ProcessConfigPO record);

    boolean deleteProcessConfig(List<Integer> processConfigIdList);

    boolean deleteProcessConfigByKey(List<String> processConfigKeyList);

    ProcessConfigPO getProcessConfigById(int processConfigId);

    ProcessConfigPO getProcessConfigByKey(String processConfigKey);

    boolean editProcessConfig(ProcessConfigPO record);
}
